<style>
.fixed-table-container{border: none;}
.table{border :1px solid #eee;}
.panel-body{overflow: auto;}
.textarea{width: 100%; resize: none;height: 180px;}
</style>
<div class="row">
	<ol class="breadcrumb">
		<li><a href="{:U('Index/index')}"><span class="glyphicon glyphicon-home"></span></a></li>
		<li class="active">荣誉添加</li>
	</ol>
</div><!--/.row-->

<div class="row">
	<div class="col-lg-12">
		<h1 class="page-header">荣誉添加</h1>
	</div>
</div><!--/.row-->

<div class="row">
	<div class="col-lg-12">
		<div class="panel panel-default">
			<div class="panel-body">
				<div class="fixed-table-loading" style="top: 37px; display: none;">Loading, please wait…</div>
				<table data-toggle="table" data-url="tables/data2.json" class="table table-hover">
				    <thead>
					    <tr>
						    <th style="text-align: center;">
							    <div class="th-inner ">荣誉标题</div>
						    </th>
						    <th style="text-align: center;">
							    <div class="th-inner ">荣誉内容</div>
						    </th>
						    <th style="text-align: center;">
							    <div class="th-inner ">日期</div >  
						    </th>
						     <th style="text-align: center;">
							    <div class="th-inner ">操作</div>
						    </th>
					    </tr>
				    </thead>
				    <tbody>
						<?php foreach($data as $k => $v) { ?>
						<tr style="text-align: center; ">
							<td><?php echo $v['arytitle']; ?></td>
							<td><?php echo $v['content']; ?></td>
							<td><?php echo $v['wdate']; ?></td>
							<td><a href="<?php echo U('JoinUs/joinDel',array('id'=>$v['id'])); ?>">删除</a></td>
						</tr>
						<?php } ?>
					</tbody>
					
					</tbody>
				</table>
				<form role="form"  method="post"  enctype="multipart/form-data" action="{:U('JoinUs/joinSet')}">
					<div class="form-group">
						<label>荣誉标题</label>
						<input class="form-control" type="text" name="arytitle" placeholder="标题">
					</div>								
					<div class="form-group text-left">
						<label>文章内容设置</label><br>
						<textarea class="textarea" name="content" placeholder="荣誉内容"></textarea>
						<br/>
					</div>			
					<input type="submit" class="btn btn-primary" value="提交">	
				</form>
			</div>
		</div>
	</div>
</div><!--/.row-->

